home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
msdos
/
viewers
/
pcxut10
/
pcxutils.doc
< prev
next >
Wrap
Text File
|
1993-10-11
|
3KB
|
79 lines
PCX transformations from command-line
PCXUTILS offers a number of simple-minded transformations on monochrome and
16-color PCX files:
- conversion to monochrome (without dithering)
- inverting colors
- solving problems
WHEN TO USE PCXUTILS
--------------------
- when Graphics Workshop chokes on a large bitmap
- when your graphics program insists on storing a monochrome picture as a
color bitmap (e.g. WP Presentations)
- when your wordprocessor can't make sense of a PCX file
- when you want to automate simple conversions (see also tips at end of file)
KNOWN PROBLEMS WITH PCX FILES
-----------------------------
- WordPerfect sometimes scrambles a monochrome bitmap, especially one
generated by MS PaintBrush.
- The emTeX DVI drivers sometimes render Harvard Graphics bitmaps
as a solid black box.
- Some versions of Ventura seem to require a round number (in terms of pixels)
for the image width.
SYNTAX
------
PCXUTILS [option] filename
[option] can be:
/i invert
/m color to monochrome: every non-white color becomes black;
Successive /i /m /i transformations would
map every non-black color to white.
The current version doesn't offer dithering.
/r round image size up to even n. of bytes per line
/p+ standardize palette by interpreting existing palette; equivalent to /p
/p- standardize palette and ignore existing palette
Only the first option is honored.
NOTES
-----
- Irrespective of the option entered, the number of bytes per line is rounded
up to an even number; this is required by the PCX standard. This has no
effect on image width.
- If applicable, the number of bytes per line is reduced to the smallest
possible number. This should solve problems with e.g. monochrome MS
Paintbrush files imported into WordPerfect.
- The /p option should make Harvard Graphics PCX files acceptable to e.g. the
emTeX DVI-drivers.
- Color bitmaps may increase in size because data are compressed per line
per bitplane, although the PCX standard allows compression of all bitplanes
of one line at one go.
TIPS
----
- If you want to convert a bitmap to monochrome, and you want to map every
non-black color to white, you can accomplish this by successive /i /m /i
transformations:
COPY BITFILE.PCX *.SAV (just in case...)
PCXUTILS /I BITFILE
PCXUTILS /M BITFILE
PCXUTILS /I BITFILE
- In batch files, you can suppress a request for user input by eg.
ECHO Y | PCXUTILS /I BITFILE
- You can also suppress screen output:
ECHO Y | PCXUTILS /I BITFILE >NUL
This program is donated to the Public Domain.
August 8 1993
Siep Kroonenberg
Email: N.S.Kroonenberg@eco.rug.nl